/* 基础布局 */
.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
  }
  
  /* 头部样式 */
  .header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
  }
  
  .header-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
  }
  
  .title-section {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  
  .page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    letter-spacing: 0.5px;
  }
  
  .subtitle {
    color: #64748b;
    font-size: 14px;
  }
  
  .divider {
    width: 2px;
    height: 24px;
    background: #cbd5e1;
  }
  
  .action-group {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .search-input {
    width: 320px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* 表格容器 */
  .table-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 20px;
  }
  
  :deep(.el-table) {
    flex: 1;
    overflow: auto;
    
    /* 固定表头 */
    .el-table__header-wrapper {
      position: sticky;
      top: 0;
      z-index: 100;
      background: var(--el-fill-color-light);
    }
  
    td {
      height: 48px;
      padding: 8px 0;
    }
  }
  
  /* 分页样式 */
  .pagination-container {
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: #fff;
    border-top: 1px solid var(--el-border-color-lighter);
    position: sticky;
    bottom: 0;
    z-index: 100;
  
    :deep(.el-pagination__sizes) {
      width: 160px;
      
      .el-select {
        width: 100%;
        
        .el-input__wrapper {
          padding: 0 10px;
        }
      }
    }
  
    :deep(.el-select-dropdown__list) {
      min-width: 160px;
      
      .el-select-dropdown__item {
        padding: 0 20px;
        text-align: center;
      }
    }
  }
  
  /* 对话框样式 */
  :deep(.el-dialog) {
    border-radius: 12px;
    width: 1040px !important;
  
    &__header {
      padding: 24px 32px;
      border-bottom: 1px solid #e2e8f0;
    }
  
    &__title {
      font-size: 18px;
      font-weight: 600;
      color: #1e293b;
    }
  
    &__body {
      padding: 24px 32px 12px;
    }
  }
  
  /* 表单样式 */
  :deep(.el-form) {
    display: flex;
    flex-direction: column;
    gap: 8px;
  
    .el-row {
      margin: 0 !important;
    }
  
    .el-col {
      padding: 0 12px !important;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }
  }
  
  /* 附件上传 */
  .attachment-section {
    margin-top: 12px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
  
    :deep(.el-upload-list) {
      max-height: 120px;
      overflow-y: auto;
    }
  }
  
  .attachment-link {
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    
    .el-icon {
      margin-left: 4px;
      font-size: 0.9em;
    }
  }
  
  /* 响应式 */
  @media (max-width: 1200px) {
    :deep(.el-dialog) {
      width: 90% !important;
    }
  
    .header-content {
      flex-wrap: wrap;
      gap: 12px;
    }
  
    .search-input {
      width: 240px;
    }
  }

  /* 全局工具提示 */
.payment-tooltip {
    max-width: 520px;
    padding: 8px;
    
    .el-table {
      --el-table-header-bg-color: #f8f9fa;
      
      th, td {
        padding: 4px 0;
      }
    }
  }
  
  .custom-tooltip {
    background: #f8f9fa !important;
    color: #495057 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    
    &[x-placement^=right] .popper__arrow::after {
      border-right-color: #f8f9fa !important;
    }
  }

  
/* 新增容器高度控制 */
.container {
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 防止整体滚动 */
  }
  
  /* 头部高度控制 */
  .header {
    flex-shrink: 0;
    height: auto; /* 自动高度 */
    padding-bottom: 16px; /* 与表格区域间距 */
  }
  
  /* 表格容器 */
  .table-wrapper {
    flex: 1;
    position: relative;
    margin: 0 16px; /* 左右留白 */
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.06);
    overflow: hidden; /* 重要：防止内部内容溢出 */
  }
  
  /* 动态表格高度计算 */
  :deep(.el-table) {
    height: calc(100% - 52px) !important; /* 总高度 - 分页器高度 */
    --el-table-header-bg-color: #f8f9fa;
    --el-table-border-color: #e4e7ed;
  }
  
  /* 分页容器定位 */
  .pagination-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: white;
    border-top: 1px solid #ebeef5;
    z-index: 10; /* 确保在表格内容之上 */
  }
  
  /* 表格滚动区域优化 */
  :deep(.el-table__body-wrapper) {
    scroll-behavior: smooth;
    scrollbar-width: thin;
  }
  
  /* 表格列样式优化 */
  :deep(.el-table__cell) {
    padding: 8px 0;
  }